{{include file="common@layout/_meta_x-admin" /}}
<body>
<div class="layui-fluid">
    <div class="layui-row">
        <form class="layui-form">
            {{:widget('common/Form/input',['跳转地址','href','',false])}}
            {{:widget('common/Form/upload',['广告','img_url',[], 1, 16, 9, 'upload/system'])}}
            {{:widget('common/Form/input',['排序','display_order',1,true])}}
            {{:widget('common/Form/select',['状态','is_show',1,$isShowSelect])}}
            {{:widget('common/Form/submit')}}
        </form>
    </div>
</div>
</body>
<script>
    layui.use(['form','jquery'], function(){
        var form = layui.form;
        var $ = layui.jquery;

        //监听提交
        form.on('submit(submitForm)', function(data){
            if(!data.field.hasOwnProperty("img_url[0]")){
                layerMsg("请上传广告图");return false;
            }
            ajaxRequest('',data.field)
            return false;
        });
    });



</script>